import request from "@/utils/request";

export async function getFrontendData() {
    return await new request({
        url: '/api/user/frontend',
        method: 'GET'
    })
}

export async function getPreviewNewsContent(id) {
    return await request({
        url: `/api/user/frontend/preview-content/${id}`,
        method: 'GET'
    })
}

export async function getAllNotice(data) {
    return await new request({
        url: '/api/user/frontend/get-notices',
        method: 'POST',
        data
    })
}
